'use strict';

//const ObjectID = require('mongodb').ObjectID;
const requireEx=require('yi-require');
module.exports = {
  description:'根据ID获取上传信息',
  handler:requireEx('yi-restful').g('fs.files',[])

  /* (req, res, next)=> {
    console.log(req.params.id);
    const collection = req.mongo.collection('fs.files');
    collection.findOne({_id:ObjectID(req.params.id)},function (err, data) {
      if(err) next(err)
      else
        res.json(data);
    })
  }*/
};
